{% extends "comics/base.html" %}
{% load i18n %}

{% block body %}
{% if webcomic.image %}
<div class="comic-headerImage">
    <a href="{% url comics.webcomic webcomic.slug %}">
        <img alt="Webcomic main image" class="comic-headerImage" src="{{ webcomic.image.url }}"></img>
    </a>
</div>
{% endif %}

<div style="margin-top: 1em;">
    <fieldset>
        <legend>{{form_legend}}</legend>
        <form method="post" action="." enctype="multipart/form-data">
            <ul class="lista clear">
                {% for field in form %}
                <li class="clear">
                    <div class="span-4 {% if field.errors %}lerror{%endif%}">{{field.label_tag}}</div>
                    <div class="span-18 last">
                        {{field}} <span class="small quiet">{{field.help_text}}</span></div>
                    {% if field.errors %}
                    <div class="error clear">
                        <ul>
                            {% for error in field.errors %}
                            <li>{{error}}</li>
                            {% endfor %}
                        </ul>
                    </div>
                    {% endif %}
                </li>
                {% endfor %}
                <li class="clear">
                    <button type="submit">{% trans "Send"%}</button>
                    <button type="reset">{% trans "Clear"%}</button>
                </li>
            </ul>
        </form>
    </fieldset>
</div>
{% endblock body %}